<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">

		</div>
		<script src="../js/vue.js"></script>
		<script>
			const app=new Vue({
				el:"#app",
				data:{
					userName:''
				},
				methods:{
					chackName(val){
						if(val==='admin'){
							...
						}else if(val==='tom'){
							...
						}	
				}
			})
		</script>
	</body>
</html>
